<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3//EN">
<HTML><HEAD>
		<TITLE>User's Reference - Done</TITLE>
		<META HTTP-EQUIV="keywords" CONTENT="GRAPHICS VISUALIZATION VISUAL PROGRAM DATA
MINING">
	<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
</HEAD><BODY BGCOLOR="#FFFFFF" link="#00004b" vlink="#4b004b">
		<TABLE width=510 border=0 cellpadding=0 cellspacing=0>
			<TR>
				<TD><IMG src="../images/spacer.gif" width=80 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=49 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=24 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=100 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=3 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=127 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=6 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=50 height=1></TD>
				<TD><IMG src="../images/spacer.gif" width=71 height=1></TD>
			</TR>
			<TR>
				<TD colspan=9><IMG src="../images/flcgh_01.gif" width=510 height=24 alt="OpenDX - Documentation"></TD>
			</TR>
			<TR>
				<TD colspan=2><A href="../allguide.htm"><IMG src="../images/flcgh_02.gif" width=129 height=25 border="0" alt="Full Contents"></A></TD>
				<TD colspan=3><A href="../qikguide.htm"><IMG src="../images/flcgh_03.gif" width=127 height=25 border="0" alt="QuickStart Guide"></A></TD>
				<TD><A href="../usrguide.htm"><IMG src="../images/flcgh_04.gif" width=127 height=25 border="0" alt="User's Guide"></A></TD>
				<TD colspan=3><B><A href="../refguide.htm"><IMG src="../images/flcgh_05d.gif" width=127 height=25 border="0" alt="User's Reference"></A></B></TD>
			</TR>
			<TR>
				<TD><A href="refgu049.htm"><IMG src="../images/flcgh_06.gif" width=80 height=17 border="0" alt="Previous Page"></A></TD>
				<TD colspan=2><A href="refgu051.htm"><IMG src="../images/flcgh_07.gif" width=73 height=17 border="0" alt="Next Page"></A></TD>
				<TD><A href="../refguide.htm"><IMG src="../images/flcgh_08.gif" width=100 height=17 border="0" alt="Table of Contents"></A></TD>
				<TD colspan=3><A href="refgu009.htm"><IMG src="../images/flcgh_09.gif" width=136 height=17 border="0" alt="Partial Table of Contents"></A></TD>
				<TD><A href="refgu175.htm"><IMG src="../images/flcgh_10.gif" width=50 height=17 border="0" alt="Index"></A></TD>
				<TD><A href="../srchindx.htm"><IMG src="../images/flcgh_11.gif" width=71 height=17 border="0" alt="Search"></A></TD>
			</TR>
		</TABLE>
		<H3><A name="HDRODONE" ></A>Done</H3>
		<P><STRONG>Category</STRONG>
		<P>
<A HREF="refgu008.htm#HDRCATFLOW">Flow Control</A>
<A NAME="IDX471"></A>
<A NAME="IDX472"></A>
<P><STRONG>Function</STRONG>
<P>
Specifies whether a loop is to be terminated.
<P><STRONG>Syntax</STRONG>
Done<TT>(<STRONG>done</STRONG>);</TT>
<P><STRONG>Inputs</STRONG>
<BR>
<TABLE BORDER>
<TR>
<TH ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">Name
</TH><TH ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">Type
</TH><TH ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">Default
</TH><TH ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">Description
</TH></TR><TR>
<TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%"><TT><STRONG>done</STRONG></TT>
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">flag
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="20%">none
</TD><TD ALIGN="LEFT" VALIGN="TOP" WIDTH="40%">0: no termination
<BR>
1: terminate the loop
</TD></TR></TABLE>
<P><STRONG>Functional Details</STRONG>
<P>
This module terminates a loop.
If <TT><STRONG>done</STRONG></TT> is set to:
<TABLE CELLPADDING="3">
<TR VALIGN="TOP"><TD><P>0
</TD><TD><P>The macro containing the Done module will continue to execute until
<BR>
<TT><STRONG>done</STRONG></TT> = 1 or until one of the other looping tools
(ForEachN or ForEachMember) terminates the loop.
</TD></TR><TR VALIGN="TOP"><TD><P>1
</TD><TD><P>The loop is terminated upon completion of the current loop
iteration,
regardless of how many iterations have been, or remain to be,
executed.
</TD></TR></TABLE>
<P>
Typically, loops are initiated with ForEachMember or ForEachN,
although they can also be implemented with a Get/Set pair and
Done.
<P><B>Notes: </B><OL>
<P><LI>If this module is used in the scripting language, the results
are defined only if it is used inside a macro.
<P><LI>If <TT><STRONG>done</STRONG></TT> is set to 1 by an interactor
<I>during</I> the execution of a loop, the new  setting
will not take effect until the loop is completed:
new interactor values are considered at the end of an execution, and a
complete loop is considered to be a <I>single</I> execution.
<P><LI>Simply placing a Done icon in a visual program and setting the
parameter <TT><STRONG>done</STRONG></TT> to 0 (zero) will create
an infinite loop.
</OL>
<P><STRONG>Example Visual Programs</STRONG>
<P>
<PRE>
Bounce.net
SimpleGetSetLoop.net
</PRE>
<P><STRONG>See Also</STRONG>
<P>
&nbsp;<A HREF="refgu062.htm#HDROFIRST">First</A>,
&nbsp;<A HREF="refgu063.htm#HDRFOREMEM">ForEachMember</A>,
&nbsp;<A HREF="refgu064.htm#HDRFOREN">ForEachN</A>,

&nbsp;<A HREF="refgu066.htm#HDRGETGLO">GetGlobal</A>,
&nbsp;<A HREF="refgu067.htm#HDRGETLOC">GetLocal</A>,
&nbsp;<A HREF="refgu135.htm#HDRSETGLO">SetGlobal</A>,
&nbsp;<A HREF="refgu136.htm#HDRSETLOC">SetLocal</A>

<P>
&nbsp;<A HREF="usrgu026.htm#HDRXMOD">Chapter 4. "Data Explorer Execution
Model"</A> in <I>IBM Visualization Data Explorer User&#39;s Guide</I>.

		<P>
		<HR>
		<DIV align="center">
			<P><A href="../allguide.htm"><IMG src="../images/foot-fc.gif" width="94" height="18" border="0" alt="Full Contents"></A> <A href="../qikguide.htm"><IMG src="../images/foot-qs.gif" width="94" height="18" border="0" alt="QuickStart Guide"></A> <A href="../usrguide.htm"><IMG src="../images/foot-ug.gif" width="94" height="18" border="0" alt="User's Guide"></A> <A href="../refguide.htm"><IMG src="../images/foot-ur.gif" width="94" height="18" border="0" alt="User's Reference"></A></P>
		</DIV>
		<DIV align="center">
			<P><FONT size="-1">[ <A href="http://www.research.ibm.com/dx">OpenDX Home at IBM</A>&nbsp;|&nbsp;<A href="http://www.opendx.org/">OpenDX.org</A>&nbsp;] </FONT></P>
			<P></P>
		</DIV>
		<P></P>
	</BODY></HTML>
